package com.ruoyi.sreport.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sreport.mapper.JianchaxinxiMapper;
import com.ruoyi.sreport.domain.Jianchaxinxi;
import com.ruoyi.sreport.service.IJianchaxinxiService;

/**
 * 检查信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-24
 */
@Service
public class JianchaxinxiServiceImpl implements IJianchaxinxiService 
{
    @Autowired
    private JianchaxinxiMapper jianchaxinxiMapper;

    /**
     * 查询检查信息
     * 
     * @param id 检查信息主键
     * @return 检查信息
     */
    @Override
    public Jianchaxinxi selectJianchaxinxiById(Long id)
    {
        return jianchaxinxiMapper.selectJianchaxinxiById(id);
    }

    /**
     * 查询检查信息列表
     * 
     * @param jianchaxinxi 检查信息
     * @return 检查信息
     */
    @Override
    public List<Jianchaxinxi> selectJianchaxinxiList(Jianchaxinxi jianchaxinxi)
    {
        return jianchaxinxiMapper.selectJianchaxinxiList(jianchaxinxi);
    }

    /**
     * 新增检查信息
     * 
     * @param jianchaxinxi 检查信息
     * @return 结果
     */
    @Override
    public int insertJianchaxinxi(Jianchaxinxi jianchaxinxi)
    {
        return jianchaxinxiMapper.insertJianchaxinxi(jianchaxinxi);
    }

    /**
     * 修改检查信息
     * 
     * @param jianchaxinxi 检查信息
     * @return 结果
     */
    @Override
    public int updateJianchaxinxi(Jianchaxinxi jianchaxinxi)
    {
        return jianchaxinxiMapper.updateJianchaxinxi(jianchaxinxi);
    }

    /**
     * 批量删除检查信息
     * 
     * @param ids 需要删除的检查信息主键
     * @return 结果
     */
    @Override
    public int deleteJianchaxinxiByIds(Long[] ids)
    {
        return jianchaxinxiMapper.deleteJianchaxinxiByIds(ids);
    }

    /**
     * 删除检查信息信息
     * 
     * @param id 检查信息主键
     * @return 结果
     */
    @Override
    public int deleteJianchaxinxiById(Long id)
    {
        return jianchaxinxiMapper.deleteJianchaxinxiById(id);
    }
}
